
import request from '@/utils/request'
export function getDepartments() {
  return request.get('/company/department')
}
// 删除部门
export function deleteDepartments(id) {
  return request.delete(`/company/department/${id}`)
}
// 获取负责人列表
export function getEmployeeList() {
  return request.get('/sys/user/simple')
}
// 新增部门
export function addDepartment(department) {
  return request.post('/company/department', department)
}
// 获取单个部门详情
export function getSingleDepartment(id) {
  return request.get(`/company/department/${id}`)
}
// 编辑部门
export function updataDepartment(depart) {
  return request.put(`/company/department/${depart.id}`, depart)
}
